<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>TMT后台管理</title>
    
	<%@include file="/common/header.jsp" %>

   
	<style type="text/css">
		.essaymanager{
			text-decoration: none;
			font-size: 40px;
		}
	
	</style>
	

	
	
	
  </head>
  
  <body>
  	
    <div style="vertical-align:middle;"><img src="${pageContext.request.contextPath }/img/Logo.png"/><img style="margin-left: 400px; margin-top: 5px" alt="" src="${pageContext.request.contextPath }/img/adminimg.png"><div>欢迎 <s:property value="#session.loginSession.userName"/></div><a href="${pageContext.request.contextPath }/admin/admin_loginOut.action">退出后台管理</a></div>
	<div id="cc" class="easyui-layout" style="width:100%;height:90%;">    
    <div data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width:100px;"></div>   
    
    
    <div data-options="region:'west',title:'导航菜单',split:true"  style="width:250px;">
    	<div id="aa" class="easyui-accordion" data-options="fit:true,border:false">   
    		<div title="文章管理" data-options="iconCls:'icon-save',selected:true" style="overflow:auto;padding:10px;">   
       			 <a id="essayID" style="width: 100%;" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true,toggle:true,group:'essay'">文章列表</a> <br/>
       			  <a id="btn" href="#" style="width: 100%;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true,toggle:true,group:'essay'">写文章</a> <br/>
   			 </div>   
   			 <div title="前台图片管理" data-options="iconCls:'icon-save'" style="padding:10px;">   
    			    <a id="btn" href="#" style="width: 100%;" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">图片列表</a> <br/>  
   			 </div>   
      	<div title="关于本站">   
       	 content3    
	    	</div>   
		</div>  
    </div>
    
       
    <div data-options="region:'center',title:'操作'" style="padding:5px;background:#eee;">
    	<div id="tabsID" class="easyui-tabs" style="width:500px;height:250px;" data-options="plain:true,border:false,selected:-1,fit:true">   
		</div>  
    	
    
    
    </div>   
    
    
    
    
    
    <div data-options="region:'south'" style="height: 50px">
    	<center><font style="font-size: 19px">thenmoret版权所有</center>
    
    </div>
    
    
	</div>  
	<script type="text/javascript">
	/* 说明  a标签就是左边栏目的所有按钮的匹配选项
	 *
	 *
	 *
	 *
	 */
	
		$("a").click(function(){
				var tile = $(this).text();
				var title = $.trim(tile); //单击的按钮名称
				if("文章列表" == title)
				{
					var flag = $("#tabsID").tabs("exists",title);
					var content = "<iframe frameborder=0 scrolling='auto' style='width:100%;height:100%' src='${pageContext.request.contextPath }/admin/essay_EssayAllUI.action'></iframe>";
					if(!flag){
						$("#tabsID").tabs("add",{
									"title" : title,
									"closable" : true,
									"content" : content
						
						});
					};
				
				
				}
				if("写文章" == title)
				{
					var flag = $("#tabsID").tabs("exists",title);
					
					if(!flag){
					var content="<iframe frameborder=0 scrolling='auto' style='width:100%;height:100%' src='${pageContext.request.contextPath }/admin/essay_EssayAddUI.action'></iframe>";
						$("#tabsID").tabs("add",{
									"title" : title,
									"closable" : true,
									"content" : content
						
						});
					};
				
				
				}
				if("图片列表" == title)
				{
					var flag = $("#tabsID").tabs("exists",title);
					var content="<iframe frameborder=0 scrolling='auto' style='width:100%;height:100%' src='${pageContext.request.contextPath }/admin/img_loadImg.action'></iframe>";
					if(!flag){
						$("#tabsID").tabs("add",{
									"title" : title,
									"closable" : true,
								    "content" : content
						});
					};
				
				
				}
				
				
		});
		
	
	</script>

	
	
		
		
  </body>
</html>
